<div *ngIf="regtype==1">
  <div class="weui-cell weui-cell_switch switch">
    <div class="weui-cell__bd">只显示有号的日期</div>
    <div class="weui-cell__ft">
      <label for="switchCP" class="weui-switch-cp">
        <input [(ngModel)]="cho2" id="switchCP" class="weui-switch-cp__input" type="checkbox" name="cho1" (click)="sb()">
        <div class="weui-switch-cp__box"></div>
      </label>
    </div>
  </div>
  <!--<div class="weui-cell weui-cell_switch">
  <div class="weui-cell__bd"></div>
 <div class="weui-cell__ft">
    <input class="weui-switch-cp__input" type="checkbox"  name="cho1" (click)="sb()">
  </div>
</div>-->
  <div *ngFor="let item of shudata,let i = index;" class="weui-flex">
    <div class="weui-flex__item leftimg" style="text-align: center">
      <img src="assets/img/arrow_bg.svg" *ngIf="i!=idx&&i!=0" style="margin-top: 12px" (click)="previous(i)">
      <img src="assets/img/arrow.svg" *ngIf="i==idx-1" style="margin-top: 12px;">
    </div>
    <div *ngFor="let sh of item,let j = index" class="weui-flex__item" style="text-align: center">
      <div *ngIf="i!=idx" (click)="itemClick(i,j)" (click)="doctorlist(sh.shuId)" [class.text]="i==indexi&&j==indexj" class="placeholder">
        <div class="hhh">{{sh.date}}
          <br>{{sh.week}}</div>
      </div>
    </div>
    <div class="weui-flex__item" style="text-align: center">
      <img src="assets/img/arrow_bg.svg" *ngIf="i!=idx&&i!=cho1" style="margin-top: 12px;" (click)="next(i)">
      <img src="assets/img/arrow.svg" *ngIf="i==idx+1" style="margin-top: 12px;">
    </div>
  </div>
</div>
<div class="weui-cells list-group" style="margin-top:0px">
  <a *ngFor="let doc of doctor" class="weui-cell weui-cell_access list-group-item" (click)="doRegister()">
    <div class="weui-media-box__hd">
      <img class="weui-media-box__thumb imgx" src='assets/img/doctor.png' (click)="doctorIndex()">
    </div>
    <div class="weui-cell__bd">
      <div>
        <label class="left">{{doc.doctorName}}</label>
        <label class="item right haves" *ngIf="doc.doctorTime==3">上午有号</label>
      </div>
      <div>
        <label class="left small">{{doc.doctorType}}</label>
        <label class="item right small" style="padding-top: 3px;">{{doc.doctorPrice}}.00元</label>
      </div>
    </div>
    <div class="weui-cell__ft">
    </div>
  </a>
</div>